import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/clientStore'
import layer from 'vue-layer'
import 'vue-layer/lib/vue-layer.css'
import Element from 'element-ui'
import axios from 'axios'
import VDistpicker from 'v-distpicker'
import moment from 'moment'

//城市选择器
Vue.component('v-distpicker', VDistpicker);
//时间戳转换器
Vue.filter('dateFormat', (dateStr, pattern = 'YYYY-MM-DD HH:mm:ss') => {
  return moment(dateStr).format(pattern)
});
//全局通讯axios
Vue.prototype.$hhh=axios;
axios.defaults.withCredentials = true;
//Element-UI
Vue.use(Element, { size: 'small', zIndex: 2000 });
//引入vue-layer
Vue.prototype.$layer = layer(Vue);
//VUE开发模式
Vue.config.productionTip = false;


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
